#include<iostream>
#include<memory>
using namespace std;

int main20(){

	auto_ptr<int> ptr(new int);//等价于int *ptr=new int;
//智能指针不用手动delete指针
	*ptr=12345;
	cout<<*ptr<<endl;


	cout<<"end"<<endl;
	return 0;
};
